package com.itheima.filter;

import javax.servlet.*;
import java.io.IOException;
//@WebFilter
public class Demo01Filter implements Filter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("拦截器Demo01Filter.doFilter执行了，目标方法执行前...");
//        chain.doFilter(request,response);
        System.out.println("拦截器Demo01Filter.doFilter执行了，目标方法执行后...");
    }
}
